from .table_api import get_table_edit_obj
import ray


def get_factor_from_table_only_time(*x, **y):
    obj = get_table_edit_obj()
    return ray.get(obj.get_factor_from_table_only_time.remote(*x, **y))


def get_factor_from_table_only_time_by_date(*x, **y):
    obj = get_table_edit_obj()
    return ray.get(obj.get_factor_from_table_only_time.remote(*x, **y))


def get_factor_from_table(*x, **y):
    obj = get_table_edit_obj()
    return ray.get(obj.get_factor_from_table.remote(*x, **y))


def get_factor_from_table_by_pivot(*x, **y):
    obj = get_table_edit_obj()
    return ray.get(obj.get_factor_from_table_by_pivot.remote(*x, **y))


def delete_factor_from_table(*x, **y):
    obj = get_table_edit_obj()
    return ray.get(obj.delete_factor_from_table.remote(*x, **y))


def add_factor_to_table(*x, **y):
    obj = get_table_edit_obj()
    return ray.get(obj.add_factor_to_table.remote(*x, **y))
